package com.personal.ifanya.domain;

import org.apache.commons.lang.Validate;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.dao.DataAccessException;
import org.springframework.stereotype.Component;
import org.tbwork.utility.toolbox.tbEncode; 
 
import com.personal.ifanya.domain.enums.BizExceptionMsg;
import com.personal.ifanya.domain.exception.BizException; 
import com.personal.ifanya.infrastructure.statics.GlobalVariable;
import com.personal.ifanya.infrastructure.util.MailBoxService;

@Component
public class UserBiz {


	
	public boolean checkUser(String name ,String password)
	{
		
		String name_right_md5 =  tbEncode.MD5("tangbo");
		String password_right_md5  = tbEncode.MD5("http3pgdn");
		
		String name_input_md5 = tbEncode.MD5(name);
		
		String password_input_md5 = tbEncode.MD5(password);
		
		
		if(name_right_md5.equals(name_input_md5) && password_right_md5.equals(password_input_md5))
			return true;
		else
			return false;
		
	}
	
	
}
